package po;

import java.sql.Blob;
import java.util.Date;

//映射类
public class OrderWithUser {
	private int orderID; //订单编号
	
	private int promulgatorID; //订单发布者
	private int costomerID; //订单接收者
	
	String type; //年级
	String course; //课程
	String date; //课程时间
	String address; //用户给出的地址
	double price; //价格 /小时
	int status; //订单状态 0-无  1-处理中 2-进行中 3-结束
	String appraise; //评价
	
	private String name; //真实姓名
	private String sex; //性别
	private String id; //身份证号码
	private Date birthday; //年龄
	private String background; //学历
	
	private String phone;  //联系号码
	private String email; //邮箱地址
	
	private Blob image; //头像
	public OrderWithUser() {}
	//查询时所用的构造函数
	public OrderWithUser(String type,String course,String name,String sex,String background,String date,double price) {
		this.type = type;
		this.course = course;
		this.name = name;
		this.sex = sex;
		this.background = background;
		this.date = date;
		this.price = price;
	}
	
	public void setPromulgatorID(int promulgatorID) {
		this.promulgatorID = promulgatorID;
	}
	public int getPromulgatorID() {
		return this.promulgatorID;
	}
	
	public void setCostomerID(int costomerID) {
		this.costomerID = costomerID;
	}
	
	public int getCostomerID() {
		return this.costomerID;
	}
	
	public int getOrderID() {
		return this.orderID;
	}
	public void setOrderID(int orderID) {
		this.orderID = orderID;
	}
	
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	
	public String getCourse() {
		return course;
	}
	public void setCourse(String course) {
		this.course = course;
	}
	
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	
	public String getAppraise() {
		return appraise;
	}
	public void setAppraise(String appraise) {
		this.appraise = appraise;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getId() {
		return this.id;
	}
	
	public void setBackground(String background) {
		this.background = background;
	}
	public String getBackground() {
		return this.background;
	}
	
	public void setImage(Blob image) {
		this.image = image;
	}
	public Blob getImage() {
		return this.image;
	}
	
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getPhone() {
		return this.phone;
	}
	
	public void setEmail(String email) {
		this.email = email;
	}
	public String getEmail() {
		return this.email;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return this.name;
	}
	
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getSex() {
		return this.sex;
	}
	
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public Date getBirthday() {
		return this.birthday;
	}
	
}
